home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Demos
/
A.D. Software
/
OOFGraph
/
Application Source
/
temperaturetest.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1996-05-03
|
646b
|
40 lines
#include "temperaturetest.hpp"
#ifdef OOF_SmartHeap
#include "smrtheap.hpp"
#endif
void dbTemperature::Add(const char *day, const char *time, const long temp)
{
newRecord();
Day = day;
Time = time;
Temp = temp;
saveRecord();
}
void dbTemperature::AddTestData()
{
Add("Sun", "Day", 22);
Add("Sun", "Night", 12);
Add("Mon", "Day", 24);
Add("Mon", "Night", 12);
Add("Tue", "Day", 24);
Add("Tue", "Night", 10);
Add("Wed", "Day", 27);
Add("Wed", "Night", 14);
Add("Thu", "Day", 25);
Add("Thu", "Night", 12);
Add("Fri", "Day", 22);
Add("Fri", "Night", 10);
Add("Sat", "Day", 19);
Add("Sat", "Night", 8);
}